home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwdea.dir / 00261_Script_261 < prev    next >
Text File  |  1994-11-15  |  3KB  |  134 lines

  1. on startMovie
  2.   global nowFrame
  3.   global horNess, currMM, dialogOn
  4.   set dialogOn = FALSE
  5.   set currMM = "FLWWW"
  6.   puppetSprite 22, TRUE
  7.   puppetSprite 23, TRUE
  8.   puppetSprite 21, TRUE
  9.   set the immediate of sprite 23 to TRUE
  10.   set the stretch of sprite 23 to FALSE
  11.   repeat with i = 12 to 16
  12.     puppetSprite i, TRUE
  13.   end repeat 
  14.   repeat with i = 12 to 16
  15.     set the immediate of sprite i to TRUE
  16.   end repeat
  17. end startMovie
  18.  
  19. on stepMovie
  20.   global nowFrame,currFrame
  21.   if nowFrame <> currFrame then
  22.     seeAlsoList
  23.     set currFrame = nowFrame
  24.   end if
  25. end stepMovie
  26.  
  27. on stopMovie
  28.   set the castNum of sprite 21 to 1050
  29.   puppetSprite 21, FALSE
  30.   put " " into field "SeeAlsoText"
  31.   updateStage
  32. end stopMovie
  33.  
  34. on saveLocals
  35.   global lastFrame, nowFrame, lastMovie
  36.   set lastFrame = nowFrame
  37.   set lastMovie = "FLWDEA"
  38. end saveLocals
  39.  
  40. on buttonState
  41.   global FrankNav, dialogOn
  42.   global bflag, noTx
  43.   
  44.   
  45.   if dialogOn = FALSE then
  46.     
  47.     sectionCheck
  48.     
  49.     -- don't check global buttons unless mouse is down at bottom
  50.     if (the mouseV > 200) or (bFlag = TRUE) then
  51.       doState
  52.       set bFlag = FALSE
  53.     end if
  54.     
  55.   else if dialogOn = TRUE then
  56.     if the mouseDown then
  57.       if the mouseCast <> the number of cast "glossDialog" then
  58.         beep
  59.       end if
  60.     end if
  61.   end if
  62.   
  63. end buttonState
  64.  
  65. on deBackStep
  66.   global nowFrame
  67.   puppetSprite 6, FALSE
  68.   if nowFrame = "de000acc001°°°" then
  69.     go to frame "de000sto021°°°" of movie "FLWDEE"
  70.   else
  71.     go to marker (- 1)
  72.   end if
  73. end deBackStep
  74.  
  75. on deForStep
  76.   global nowFrame
  77.   puppetSprite 6, FALSE
  78.   if nowFrame = "de000acc030°°°" then
  79.     go to frame "de000lig001°°°" of movie "FLWDEL"
  80.   else
  81.     go to marker (+ 1)
  82.   end if
  83. end deForStep
  84.  
  85. on sectionCheck
  86.   global dialogOn
  87.   if dialogOn = FALSE then
  88.     
  89.     if rollover(13) then
  90.       set the castNum of sprite 13 to 21
  91.     else
  92.       set the castNum of sprite 13 to 9
  93.     end if
  94.     
  95.     if rollover(14) then
  96.       set the castNum of sprite 14 to 17
  97.     else
  98.       set the castNum of sprite 14 to 5
  99.     end if
  100.     
  101.     if rollover(15) then
  102.       set the castNum of sprite 15 to 18
  103.     else
  104.       set the castNum of sprite 15 to 6
  105.     end if
  106.     
  107.     if rollover(16) then
  108.       set the castNum of sprite 16 to 19
  109.     else
  110.       set the castNum of sprite 16 to 7
  111.     end if
  112.     updateStage
  113.   end if
  114. end sectionCheck
  115.  
  116. on textRoll txHt
  117.   global origLocV, topHat, dialogOn, SeeAlsoBox
  118.   if dialogOn = FALSE and SeeAlsoBox = FALSE then
  119.     set topHat = txHt + (the height of sprite 6 / 2)
  120.     if the width of sprite 6 > 300 then
  121.       if the mouseH > 229 and the mouseV > 363 and the mouseV < 431 then
  122.         set the locV of sprite 6 to topHat
  123.       else if (the mouseH > 610) or (the mouseH < 229) or (the mouseV > 431) or (the mouseV < txHt) then
  124.         set the locV of sprite 6 to 485
  125.       end if
  126.     else 
  127.       if the mouseH > 414 and the mouseV > 363 and the mouseV < 431 then
  128.         set the locV of sprite 6 to topHat
  129.       else if the mouseH > 610 or the mouseH < 414 or the mouseV > 431 or the mouseV < txHt then
  130.         set the locV of sprite 6 to 549
  131.       end if
  132.     end if
  133.   end if
  134. end textRoll